package org.ssp.dao;

import java.util.ArrayList;

import org.ssp.pojo.Travel;

public interface TravelDao {
	public abstract void addTravel(Travel travel);
	public abstract void deleteTravel(int id);
	public abstract void updateTravel(Travel travel);
	public abstract ArrayList<Travel> findAll(int offset,int rows);
	public abstract int findAll();
	public abstract ArrayList<Travel> findByUid(String uid,int offset,int rows);//某用户参加的活动清单
	public abstract int findByUid(String uid);
	public abstract ArrayList<Travel> find10(int offset,int rows);
	public abstract Travel findById(int id);
	public abstract ArrayList<Travel> findAllMobile();//手机端活动列表
	
	
	
	public abstract void insertTo_User_Travel(String openid,int travelid);//用户报名参加了一条活动
	public abstract ArrayList<Travel> findByOpenid(String uid);//手机端我的活动
	
	


}
